/**
 * 
 */
package com.csair.youth.webservice.impl;

import java.util.List;

import javax.jws.WebService;

import com.csair.youth.database.Resource;
import com.csair.youth.service.impl.ResourceServiceImpl;
import com.csair.youth.webservice.YouthWs;

/**
 * @author mickey
 *
 */
@WebService
public class YouthWsImpl implements YouthWs {
	private ResourceServiceImpl service;
	
	public ResourceServiceImpl getService() {
		return service;
	}

	public void setService(ResourceServiceImpl service) {
		this.service = service;
	}

	/* (non-Javadoc)
	 * @see com.csair.youth.webservice.YouthWs#getHottestResources(int)
	 */
	public List<Resource> getHottestResources(int count) {
		// TODO Auto-generated method stub
		return service.getHottestResources(count);
	}

	/* (non-Javadoc)
	 * @see com.csair.youth.webservice.YouthWs#getLatestResources(int)
	 */
	public List<Resource> getLatestResources(int count) {
		// TODO Auto-generated method stub
		return service.getLatestResources(count);
	}

}
